package com.yz.jdd.module.cashier;

import android.content.Context;
import android.text.TextWatcher;

import com.yz.jdd.network.ApiCallback;


/**
 * Created by shibin on 2017/1/16.
 * 收银 mvp模式管理
 */

public interface CashierContract {
    interface ICashierModel  {
        void doQueryBalTemps(ApiCallback callback);

    }

    interface CashierView extends IPayBaseView<Presenter> {

        void isActive(boolean isActive);//edittext是否激活

        void setTextInput(boolean isTotal, String text);//设置 edittext内容

        void showPromotion(String promotion);

        void setSelection(boolean isTotal, int offset);

        void setTextSize(int size, boolean isTotal);

        void keyboardVoicePlay(String voiceCode);

        void onText(boolean isTotal, String text);

    }

    interface Presenter {
        //edittext处理
        TextWatcher textWatcher(boolean isTotal);
        TextWatcher textEarseWatcher(float totalAmount);
        //活动充值送
        void doGetPromotions(Context context, String totalAmount);


        void martchPromotions(Context context, String totalAmount);
    }
}
